import request from '@/utils/request';

export function fetchTree(query?: any): ApiPromise<ApiResponse> {
	return request({
		url: '/admin/dept/tree',
		method: 'get',
		params: query,
	});
}
